﻿<%@ Page Title="" Language="C#" MasterPageFile="~/YUIAspNet.Master" AutoEventWireup="true" CodeBehind="ColumnDragDrop.aspx.cs" Inherits="YUIAspNetDemo.DataTable.ColumnDragDrop" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>YUIAsp.Net Controls : LiveDemo : DataTable : Column Drag-Drop</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Column Drag & Drop</h1>
    
    <p>You can enable column drag & drop reordering by setting the DataTable's DraggableColumns attribute to true.</p>
    
    <yui:DataTable id="dt" DraggableColumns="true"  runat="server">
        <Columns>
            <yui:DataTableColumn Key="DatePaid" Sortable="true" Resizeable="true" Text="Date Paid" />
            <yui:DataTableColumn Key="Amount" Resizeable="true" />
            <yui:DataTableColumn Key="PaidTo" />
            <yui:DataTableColumn Key="Remaining" />
            <yui:DataTableColumn Key="For" />
        </Columns>
    </yui:DataTable>
</asp:Content>
